package com.dao;

import com.domain.Doctor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2023-03-07
 */

@Mapper
public interface DoctorDao extends BaseMapper<Doctor> {

    
    @Select("select doctor_id from db2.doctor where doctor_tele = #{doctorTele} and doctor_password = #{doctorPassword}")
    Integer login(String doctorTele, String doctorPassword);
}
